package com.ziyucoding.springboot.labs.lab8.skywalking.springasyncdemo.service.impl;

import com.ziyucoding.springboot.labs.lab8.skywalking.springasyncdemo.service.DemoService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 示例服务实现类
 *
 * @author ziyucoding
 * @date 2022-11-01
 **/
@Service
public class DemoServiceImpl implements DemoService {

    @Override
    @Async
    public void async() {
        System.out.println("异步执行任务");
    }
}
